<!DOCTYPE html>
<div id="header">
  <span style="float:left;"> crbug.com/604095: Passes if it doesn't crash crbug.com/604095: Passes if it doesn't crash crbug.com/604095: Passes if it doesn't crash crbug.com/604095: Passes if it doesn't crash</span>
  <script>
    if (window.testRunner)
      testRunner.dumpAsText();
    document.body.offsetTop;
  </script>
  <style>
    html {
      writing-mode:vertical-rl;
    }
    #h {
      writing-mode: horizontal-tb;
      background-color: green;
    }
  </style>
  <div id="h">Text</div>
</div>
